	public function executeDelete(sfWebRequest $request)
	{
		$request->checkCSRFProtection();

		$this->dispatcher->notify(new sfEvent($this, 'admin.delete_object', array('object' => $this->getRoute()->getObject())));

		try
		{
			if ($this->getObject()->delete())
			{
				$this->getUser()->setFlash('notice', 'El elemento se ha borrado correctamente.');
			}
		}
		catch (Exception $e)
		{
			$this->getUser()->setFlash('error', 'El elemento no se ha eliminado porque se ha producido algún error.');
			$this->logError($e->getMessage());
		}

		$this->redirect('@<?php echo $this->getUrlForAction('list') ?>');
	}
